package com.skyvin.nreceipts.common.document;

import java.util.Date;

import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.web.multipart.commons.CommonsMultipartFile;

@Document
public class ReceiptUpload {

	private String id;
	private transient CommonsMultipartFile receiptFile;
	private String receiptURL;
	private Date uploadedDate;
	private String userPID;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public CommonsMultipartFile getReceiptFile() {
		return receiptFile;
	}
	public void setReceiptFile(CommonsMultipartFile receiptFile) {
		this.receiptFile = receiptFile;
	}
	public String getReceiptURL() {
		return receiptURL;
	}
	public void setReceiptURL(String receiptURL) {
		this.receiptURL = receiptURL;
	}
	public Date getUploadedDate() {
		return uploadedDate;
	}
	public void setUploadedDate(Date uploadedDate) {
		this.uploadedDate = uploadedDate;
	}
	public String getUserPID() {
		return userPID;
	}
	public void setUserPID(String userPID) {
		this.userPID = userPID;
	}
	@Override
	public String toString() {
		return "ReceiptUpload [id=" + id + ", receiptFile=" + receiptFile
				+ ", receiptURL=" + receiptURL + ", uploadedDate="
				+ uploadedDate + ", userPID=" + userPID + "]";
	}
	
}
